<template>
  <div>
    <el-table v-loading="loading" :data="list" border stripe :key="1">
      <el-table-column
        label="序号"
        align="center"
        type="index"
      ></el-table-column>
      <el-table-column label="申请编号" align="center" prop="applyCode" />
      <el-table-column
        label="白蚁防治企业名称"
        align="center"
        prop="controlName"
        min-width="220"
      />
      <el-table-column label="申请日期" align="center" prop="createTime" />
      <!-- <el-table-column label="操作员" align="center" prop="operator" /> -->
      <el-table-column label="操作" align="center" prop="applyState">
        <template slot-scope="scope">
          <div>
            审核
            <!-- {{scope.row.applyState === '1' ? '待审核' : '编辑'}} -->
          </div>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
      class="pagination-container"
    />
  </div>
</template>
<script>
import {
  companyApplyQuery, // 人员信息
} from "@/api/manage/approval";
export default {
  name: "personList",
  data() {
    return {
      // 遮罩层
      loading: false,
      list: [],
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
      total: 0,
    };
  },
  created() {
    this.getList();
  },
  methods: {
    getList() {
      this.loading = true;
      companyApplyQuery(this.queryParams)
        .then((res) => {
          console.log(res, "23232");
          if (res.errorCode == "000000") {
            this.list = res.data.list;
            this.total = res.data.total;
          }
        })
        .finally(() => {
          this.loading = false;
        });
    },
  },
};
</script>
<style lang="scss" scoped></style>
